﻿package com.model 
{
	
	import com.event.EventZheng;
	import com.staticInfo.EventConst;
	import flash.events.EventDispatcher;
	
	/**
	 * mapDataManage中修改的属性，均抛出EventConst.EVENT_MAPDATAMANAGE事件
	 * 用event.obj.type来区别抛出事件
	 * @author zhengzihua
	 */
	
	public class MapDataManage extends EventDispatcher
	{
		private var _allowSite:Boolean = false;
		public function MapDataManage() 
		{
			
		}
		
		public function get allowSite():Boolean { return _allowSite; }
		
		public function set allowSite(value:Boolean):void 
		{
			_allowSite = value;
			var event:EventZheng = new EventZheng(EventConst.EVENT_MAPDATAMANAGE);
			event.obj.type = "allowSite";
			event.obj.allowSite = value;
			dispatchEvent(event);
		}
		
	}
	
}